package org.alino.core.filter.data;

import java.io.Serializable;
import java.util.List;

/**
 * @Desc TODO
 * @Author by Brant
 * @Date 2017/04/13
 */
public class PageDataRender<T> implements Serializable{
    /**
     * 记录总数
     */
    private Integer total;
    /**
     * 数据记录
     */
    private List<T> rows;

    public PageDataRender() {
    }

    public PageDataRender(Integer total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }

    public static PageDataRender render(Integer total, List<?> rows){
        return new PageDataRender(total,rows);
    }

    private static final long serialVersionUID = 6152249021341041109L;
    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }


}
